#ifndef DATA_LIST_H
#define DATA_LIST_H
/*
 * File:   data_list.h
 * Author: otavio
 *
 * Created on April 25, 2011, 11:55 PM
 */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define WINDOW_SIZE 3
#define MAX_STR_LEN 1250

typedef struct data_node
{
    struct DATA *prev;
    int seq;
    char data[MAX_STR_LEN];
    struct DATA *next;
} DATA;

DATA *first = NULL;
DATA *current = NULL;
char buffer[MAX_STR_LEN];
int window_num = 0;

void create_list(char *file_path);

DATA *create_data_node(char buffer[MAX_STR_LEN]);

void print_list();

void dispose_list();

#endif


